

<style type="text/css">

div#menu { margin:1px auto; }
div#copyright {
    font:11px 'Trebuchet MS';
    color:#222;
    text-indent:30px;
}
div#copyright a { color:#eee; }
div#copyright a:hover { color:#222; }
</style>

<?php
	$sql="SELECT * FROM menu
		WHERE level='1' AND states= '1'
		ORDER BY ordering ASC";
	$menu=$dp->QueryAll($sql);
?>

<div id="menu">
    <ul class="menu">
<?php
	
		for($i=0;$i<count($menu);$i++)
		{
			$page="<li>";
			$page.="<a href='index.php?option=".$menu[$i]['link']."'>" ;
			$page.='<span>'.$menu[$i]['name']."</span></a></li>";
			echo $page;
		}
	?>
	
	
</ul>

</div>
